package com.zhuangjie.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuangjie
 * @since 2024-02-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("coupon_product_batch")
@ApiModel(value = "CouponProductBatch对象", description = "")
public class CouponProductBatch implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("卷商品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty("卷批id")
    @TableField("batch_id")
    private Long batchId;

    @ApiModelProperty("数量")
    @TableField("number")
    private Integer number;
}
